import { SettingOutlined } from '@ant-design/icons';
import React from 'react';
import classNames from 'classnames';
import styles from './index.less';
import { history } from 'umi';

export interface SwaggerStatisticsProps {
  className?: string;
}

const SwaggerStatistics: React.FC<SwaggerStatisticsProps> = (props) => {
  const {
    className,
  } = props;

  const toConfig = () =>{
    history.push('/swagger/config');
  }
  return (
    <div className={classNames(className, styles.SwaggerStatistics)} >
      <span>
        <SettingOutlined
          key="Icon"
          onClick={toConfig}
          style={{
            cursor: 'pointer',
          }}
        />
      </span>
    </div>
  );
};

export default (SwaggerStatistics);
